package com.hu.book.dao;

import com.hu.book.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * @author xh
 */
public interface UserDao extends JpaRepository<User, String>, CrudRepository<User, String> {

    Optional<User> findByUsername(String username);
}
